package com.lktx.bbfactory.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lktx.bbfactory.common.CommonPage;
import com.lktx.bbfactory.entiy.Project;
import com.lktx.bbfactory.entiy.VO.projectListVo;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.List;

public interface projectService extends IService<Project> {
    //分页查询项目
    CommonPage<projectListVo> listPage(String code, String name, String client, String status, String clientUsername,
                                       Integer pageNum, Integer pageSize);

    //添加项目
    void addProject(Project project);

    //更新项目
    void updateProject(Project project);


    // 删除项目
    void deleteProject(Long id);

    //计算项目进度
    Long proProgress(Long id);

    //根据名称查id
    Long getIdByName(String name);



}
